
/*

Design Pattern Automation Toolkit.
Application to create applications with emphasis on Design patterns.
And support for round trip engineering.
Copyright (C) 2004 Vineeth Neelakant. nvineeth@gmail.com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

*/
using System;
using System.Windows.Forms;

namespace dpatoolkit.UILayer
{
	
	public class ErrorMessage
	{
		public static void Show(string message,string caption)
		{
			MessageBox.Show(null,message,caption,MessageBoxButtons.OK,MessageBoxIcon.Error);
		}
		public static void Show(string message)
		{
			MessageBox.Show(null,message,"Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
		}
	}
	public class WarningMessage
	{
		public static void Show(string message,string caption)
		{
			MessageBox.Show(null,message,caption,MessageBoxButtons.OK,MessageBoxIcon.Warning);
		}
		public static void Show(string message)
		{
			MessageBox.Show(null,message,"Warning",MessageBoxButtons.OK,MessageBoxIcon.Warning);
		}

	}
	public class InfoMessage
	{
		public static void Show(string message,string caption)
		{
			MessageBox.Show(null,message,caption,MessageBoxButtons.OK,MessageBoxIcon.Information);
		}
		public static void Show(string message)
		{
			MessageBox.Show(null,message,"Information",MessageBoxButtons.OK,MessageBoxIcon.Information);
		}
	}
		
}
